﻿using SqlSugar;

namespace ZeroAdmin.Application;

/// <summary>
/// 数据表基类
/// </summary>
public class DBEntityBase
{
    /// <summary>
    /// Id
    ///</summary>
    [SugarColumn(ColumnDataType = "bigint", IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
    public virtual long Id { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [SugarColumn(ColumnDataType = "datetime", IsNullable = true)]
    public virtual DateTime CreateTime { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [SugarColumn(ColumnDataType = "datetime", IsNullable = true)]
    public virtual DateTime UpdateTime { get; set; }

    /// <summary>
    /// 所属用户
    /// </summary>
    [SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
    public virtual string OwnerUserId { get; set; } = "";
}
